package com.jiaozi.system.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 系统参数标识
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ConfigsEnum {

    LOGIN_TOKEN_EXPIRATION("令牌有效时长","SYS_CONFIG:LOGIN:TOKEN_EXPIRATION:","86400","系统每个登录令牌默认有效时长，单位（秒）"),
    LOGIN_ACTIVE_EXPIRATION("登录活跃时长","SYS_CONFIG:LOGIN:TOKEN_EXPIRATION:","1800","用户操每次操作间隔时长，单位（秒）"),
    LOGIN_TOKEN_REFRESH_EXPIRATION("刷新令牌剩余时长","SYS_CONFIG:LOGIN:TOKEN_REFRESH_EXPIRATION:","1800","令牌有效期低于该值进行刷新令牌，单位（秒）"),
    LOGIN_PASSWORD_ERROR_NUM("输入密码错误次数上限","SYS_CONFIG:LOGIN:PASSWORD_ERROR_NUM:","5","连续输入密码错误次数上限"),
    LOGIN_PASSWORD_ERROR_LOCKED_TIME("到达上线锁定时间","SYS_CONFIG:LOGIN:PASSWORD_ERROR_LOCKED_TIME:","300","到达上线锁定时间，单位（秒）"),
    LOGIN_DEFAULT_PASSWORD("系统默认密码","SYS_CONFIG:LOGIN:DEFAULT_PASSWORD:","123456","系统默认密码"),
    ;

    /**
     * 参数名
     **/
    private String configName;


    /**
     * 参数键名
     **/
    private String configKey;


    /**
     * 参数键值
     **/
    private String configValue;


    /**
     * 备注
     **/
    private String remarks;

}
